<?php

use Illuminate\Database\Seeder;

class RoleTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {

        Sentinel::getRoleRepository()->createModel()->create([
            'name' => '超级管理员',
            'slug' => 'admin',
            'permissions' => [
                'admin' => true,
                'observer' => true,
            ],
        ]);

        Sentinel::getRoleRepository()->createModel()->create([
            'name' => '普通管理员',
            'slug' => 'observer',
            'permissions' => [
                'observer' => true,
            ],
        ]);
    }
}
